using System;

namespace Tiwo.Design
{
    public class TypeSource : ITypeSource
    {
        public TypeSource(Type source)
        {
            Source = source;
            Type = Source.Name;
            FriendlyName = Source.Name;
        }

        public Type Source { get; set; }
        public string FriendlyName { get; set; }
        public string Type { get; private set; }
    }

    public class TypeSource<T> : TypeSource
    {
        public TypeSource()
            : base(typeof(T))
        { }
    }
}